import Vue from 'vue'
import Router from 'vue-router'
import HelloWorld from '@/components/HelloWorld'
import Tabbar from '@/components/Tabbar'
import classify from '@/components/classify'
import mine from '@/components/mine'
import car from '@/components/car'


Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      component: Tabbar,
      children: [
        {
          path: '',
          component: HelloWorld
        },
        {
          path: '/tabbar/classify',
          component: classify
        },
        {
          path: '/tabbar/car',
          component: car
        },
        {
          path: '/tabbar/mine',
          component: mine
        },
        

      ]
    },
    
  ]
})
